#ifndef ITEMSPEC_H
#define ITEMSPEC_H

#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>

using namespace std;

//enum Category{FOOD, CLOTHES, TRANSPORTATION, ACCOMODATION, ENTERTAINMENT, EDUCATION, INVESTMENT, TELECOMMUNICATION};

class ItemSpec{
    private:
        string name;
        double price;
        string category;
        int necessity;
        string date;
        string venue;
		int cat;
    public:
        bool normalRecord();
		void setCategory(string);
        void record_from_file(ifstream&, streampos);
		void writefile();
        string getName();
		int getcat();
        double getPrice();
        string getCategory();
        int getNecessity();
        string getDate();
        string getVenue();
        bool compare(ItemSpec);
		void print();
};

#endif
